package com.fyh.feign.fallback;

import com.fyh.constant.MessageConstant;
import com.fyh.entity.common.Result;
import com.fyh.feign.CandidateChatFeignClient;
import org.springframework.stereotype.Component;

@Component
public class CandidateChatFeignClientFallback implements CandidateChatFeignClient {
    @Override
    public Result sendDeliveryMessage(Long positionId, Long employerId) {
        System.out.println(MessageConstant.SEND_DELIVERY_MESSAGE_FAILED);
        throw new RuntimeException(MessageConstant.SEND_DELIVERY_MESSAGE_FAILED);
    }
}
